// 基础设施A
import Vue from 'vue';
import App from './App';
import router from './router/router';
import store from './store';
import i18n from './lang'
import axios from './router/axios';
import VueAxios from 'vue-axios';

Vue.use(VueAxios, axios);

// 基础设施B
import './permission';
import './error';
import './cache';

// 注册全局容器
import basicContainer from './components/basic-container/main'; // base 容器
import basicBlock from './components/basic-block/main'          // base 块
Vue.component('basicContainer', basicContainer);
Vue.component('basicBlock', basicBlock);

// 系统配置
import website from '@/config/website';

Vue.prototype.website = website;
Vue.config.productionTip = false;

// 引入配置
import iconfont from './config/main/iconfont'
import tool from './config/main/tool'
import uilib from './config/main/uilib'
import mdeditor from './config/main/mdeditor'
import tinymce from './config/main/tinymce'

new Vue({
    iconfont,
    tool,
    uilib,
    mdeditor,
    tinymce,
    router,
    store,
    i18n,
    render: h => h(App)
}).$mount('#app');





